export const getters = {
  title: state => {
    return state.title
  },
  movingList: state => {
    for (let subject of state.movingList.subjects) {
      subject.rating.average = subject.rating.average / 2
    }
    return state.movingList
  },
  loadingMoving: state => {
    return state.loadingMoving
  },
  upcomBody: state => {
    return state.upcomBody
  },
  pageload: state => {
    return state.pageload
  },
  city: state => {
    return state.city
  },
  loadingUpComing: state => {
    return state.loadingUpComing
  },
  movieList: state => {
    for (let subject of state.movieList) {
      subject.score = subject.score / 2
    }
    return state.movieList
  },
  searchText: state => {
    return state.searchText
  },
  searchLoading: state => {
    return state.searchLoading
  },
  ranking250: state => {
    return state.ranking250
  },
  start: state => {
    return state.start
  },
  mid: state => {
    return state.mid
  },
  movieDetail: state => {
    state.movieDetail.rating.average = state.movieDetail.rating.average / 2
    return state.movieDetail
  },
  loadingDetail: state => {
    return state.loadingDetail
  },
  movieComment: state => {
    return state.movieComment
  },
  userList: state => {
    return state.userList
  },
  favouriteList: state => {
    return state.favouriteList
  },
  tid: state => {
    return state.tid
  },
  tmid: state => {
    return state.tmid
  },
  historyList: state => {
    return state.historyList
  },
  user: state => {
    return state.user
  },
  imovie: state => {
    return state.imovie
  },
  isc: state => {
    return state.isc
  },
  cpage: state => {
    return state.cpage
  },
  listCount: state => {
    return state.listCount
  }
}
